package com.fz.mapper;
import com.fz.entity.Book;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
 * Created by webrx on 2018-01-15.
 */
public interface BookMapper {
    @Select("select * from book")
    public List<Book> query();

    @Insert("insert into book(name) values(#{name})")
    public int insert(String name);
}
